package com.yuexunit.operationman.nbsy.config;

import com.yuexunit.operationman.nbsy.module.AfterOperation.bean.AfterOperationBean;
import com.yuexunit.operationman.nbsy.module.BeforeAnesthesiaVisit.bean.BeforeAnesthesiaBean;
import com.yuexunit.operationman.nbsy.module.Catheter.bean.CatheterBean;
import com.yuexunit.operationman.nbsy.module.InterventionalOperation.Bean.InterNursingBean;
import com.yuexunit.operationman.nbsy.module.OperationBeforeAndAfter.bean.BeforeAndAfterBean;
import com.yuexunit.operationman.nbsy.module.OperationInventory.bean.InventoryBean;
import com.yuexunit.operationman.nbsy.module.OperationRiskAssessment.bean.RiskAssessmentBean;
import com.yuexunit.operationman.nbsy.module.Placement.bean.PlacementBean;
import com.yuexunit.operationman.nbsy.module.SafeOperation.bean.SafeOperationBean;
import com.yuexunit.operationman.nbsy.module.SurgicalReceipt.Bean.SurgicalReceiptBean;
import com.yuexunit.operationman.nbsy.module.nurse.Bean.NurseBean;
import com.yuexunit.operationman.nbsy.module.plant.bean.MaterialBean;

/**
 * Created by work-jx on 2017/2/23.
 */
public class AppConfig {
    /**
     * 全局CrashHandler抓取报错信息到手机本地文件中
     */
    public static final String SAVEFOLDER = "operationman";
    public static final String SAVEFILENAME = "operationman.log";

//    public static final String WEB_SYSTEM ="http://192.168.1.121:9080/fhzyy_operation/";
    public static final String WEB_SYSTEM ="http://106.75.213.54:8084/syOperation/";//公司地址
//      public static final String WEB_SYSTEM ="http://192.168.1.100:9080/nbsyOperation/";//老王
    // 地址

    //加载界面提示框状态值
    public static final int SHOW_DIALOG = 1;
    public static final int DISMISS_DIALOG = -1;

    //存储xml文件名
    public static final String PATIENT_INFO = "patient_info";
    //内容
    public static final String PATIENT_NAME = "name";
    public static final String PATIENT_AGE = "age";
    public static final String PATIENT_SEX = "sex";
    public static final String PATIENT_DATE = "date";
    public static final String PATIENT_DOCTOR = "doctor";
    public static final String PATIENT_BED = "bed";
    public static final String PATIENT_DIAGNOSIS = "diagnosis";
    public static final String PATIENT_VISITNO = "visitno";
    public static final String PATIENT_OPERATION_ID = "operation_id";
    public static final String PATIENT_DISEASE = "disease";
    public static final String PATIENT_ORDER_TIME = "order_time";


    //存储xml文件名
    public static final String USER_INFO = "user_info";
    //内容
    public static final String USER_ACCOUNT = "account";
    public static final String USER_FULLNAME = "fullname";
    public static final String DOCTORTYPE = "doctortype";

    public static SafeOperationBean SAFEOPERATIONBEAN = null;
    public static MaterialBean MATERIALBEAN = null;
    public static NurseBean NURSEBEAN = null;
    public static InterNursingBean INTERNURSEBEAN = null;
    public static SurgicalReceiptBean SURGICALRECEIPTBEAN = null;
    public static RiskAssessmentBean RISKASSESSMENTBEAN = null;
    public static AfterOperationBean AFTEROPERATIONBEAN = null;
    public static BeforeAnesthesiaBean BEFOREANSETHESIA = null;
    public static InventoryBean INVENTORYBEAN = null;
    public static BeforeAndAfterBean BEFOREANDAFTERBEAN = null;
    public static CatheterBean CATHETERBEAN = null;
    public static PlacementBean PLACEMENTBEAN = null;
    public static PlacementBean DISARMTRAPBEAN = null;

    public static void initDate(){
        SAFEOPERATIONBEAN = null;
        MATERIALBEAN = null;
        NURSEBEAN = null;
        INTERNURSEBEAN = null;
        SURGICALRECEIPTBEAN = null;
        RISKASSESSMENTBEAN = null;
        AFTEROPERATIONBEAN = null;
        BEFOREANSETHESIA = null;
        INVENTORYBEAN = null;
        BEFOREANDAFTERBEAN = null;
        CATHETERBEAN = null;
        PLACEMENTBEAN = null;
        DISARMTRAPBEAN = null;
    }

    public static String INTERTYPE = "";

    public static final String CHECK_APP_LASTVERSION = "http://192.168.16.29:8080/operation_fhzyy/";

    public static Boolean isEye =false;

    //IDATA
    public static final String IDATA = "android.intent.action.SCANRESULT";

    public static String SURGICAL_01 = "病房/手术室护士核对";
    public static String SURGICAL_02 = "手术室/复苏室或病房护士核对";
    public static String SURGICAL_03 = "复苏室/病房护士核对";
}
